from setuptools import setup
import py2app

APP = ['src/vpntool.py']
DATA_FILES = [
    'src/addconnection.py',
    'src/addconnection_ui.py',
    'src/connections.py',
    'src/connections_ui.py',
    'src/password.py',
    'src/password_ui.py',
    'src/uiplatform.py',
    'src/vpnc.py',
    'src/vpntool_rc.py',
]
OPTIONS = {
    'argv_emulation': True,
    'iconfile': 'pkg/lock.icns',
    'plist': dict(
        CFBundleGetInfoString = 'vpntool _VER_',
        CFBundleIdentifier = 'com.pipacs.vpntool',
        CFBundleName = 'vpntool',
        CFBundleShortVersionString = '_VER_',
        LSUIElement = True,
    )
}

setup(
    app=APP,
    data_files=DATA_FILES,
    options={'py2app': OPTIONS},
    setup_requires=['py2app'],
)
